<template>
	<view>
		<BtnsGroup :btns-list="btnsList" sp="true">
			<view class="content" @click="goToUrl('/pages/agent/franchisee/siteManagement')">
				<u--text text="加盟站点" color="white" size="20"></u--text>
				<u--text text="代理地区加盟站点地图、各加注站点甲醇库存量" color="white" size=14></u--text>
				<view class="btn">
					<u-button type="primary" text="了解更多" color="white" size="mini" iconColor="#3A61ED"
						customStyle="color:#3662EC;margin-top:16rpx;"></u-button>
				</view>
			</view>
		</BtnsGroup>
	</view>
</template>
<script>
import BtnsGroup from "./components/BtnsGroup.vue"
import { goToUrl } from "@/utils/basic.js"
export default {
	components: {
		BtnsGroup
	},
	data() {
		return {
			btnsList: [
				{
					id: 0,
					title: '流水金额',
					stress: true,
					url: '/pages/agent/franchisee/cashflow'
				},
				{
					id: 1,
					title: '员工设置',
					stress: false,
					url: '/pages/agent/franchisee/employee/set'
				},
				{
					id: 2,
					title: '补液管理',
					stress: false,
					url: '/pages/agent/franchisee/replenish'
				},
				{
					id: 3,
					title: '甲醇价格',
					stress: false,
					url: '/pages/products/products0'
				},
				{
					id: 4,
					title: '仓储管理',
					stress: false,
					url: '/pages/agent/franchisee/stockAnalysis'
				},
				{
					id: 5,
					title: '分润管理',
					stress: false,
					url: '/pages/products/products2'
				},
			]
		}
	},
	methods: {
		goToService() {
			uni.navigateTo({
				url: '/pages/webView/webView?url=www.baidu.com'
			})
		},
		goToPrivacy() {
			uni.navigateTo({
				url: '/pages/webView/webView?url=www.baidu.com'
			})
		},
		select() {
			this.isActive = !this.isActive
		},
		login() {
			if (!isActive.value) {
				uni.showToast({
					icon: 'none',
					title: '请勾选同意'
				})
			}

		}
	}
}

</script>
<style lang="scss">
.content {
	padding: 20rpx 0 20rpx 40rpx;

	.btn {
		width: max-content;
	}
}
</style>
